@import '@/uni.scss';
.container {
	width: 100%;
	height: fit-content;
	min-height: calc(100% - 136rpx - env(safe-area-inset-bottom));
	padding-bottom: calc(136rpx + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	align-items: center;
	.search {
		margin-top: 10rpx;
		width: calc(100% - 40rpx);
		height: 68rpx;
		border-radius: 34rpx;
		border: 2rpx solid #016024;
		overflow: hidden;
		position: relative;
		.searchInput {
			width: 100%;
			height: 100%;
			pointer-events: none;
			::v-deep .uni-searchbar {
				width: 100%;
				height: 100%;
				padding: 0 !important;
				.uni-searchbar__box {
					width: 100%;
					height: 100% !important;
					padding: 0 10rpx !important;
				}
			}
		}
	}

	.rollingSwiper {
		margin: 20rpx;
		width: calc(100% - 40rpx) !important;
		height: 340rpx !important;
		.item {
			width: 100%;
			height: 100%;
			position: relative;
			> image {
				width: 710rpx;
				height: 340rpx;
				background: #fff;
				border-radius: 20rpx;
			}
			.btnTitle {
				border-radius: 20rpx;
				background: transparent;
				overflow: hidden;
				display: flex;
				justify-content: center;
				align-items: center;
				position: absolute;
				right: 20rpx;
				bottom: 20rpx;
				z-index: 1;
				> text {
					padding: 4rpx 8rpx 4rpx 12rpx;
					font-weight: 400;
					font-size: 28rpx;
					color: white;
					text-shadow: 4rpx 4rpx black, -4rpx -4rpx black, 4rpx -4rpx black, -4rpx 4rpx black;
				}
			}
		}
	}

	.group {
		padding: 0 20rpx;
		width: calc(100% - 40rpx);
		flex: 1;
		border-radius: 30rpx 30rpx 0 0;
		.groupTitle {
			width: 100%;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			.left,
			.right {
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
			}
			.left {
				> text {
					font-weight: 400;
					font-size: 30rpx;
					color: $uni-main-color;
				}
			}
			.right {
				> text {
					padding: 0 8rpx;
					font-weight: 400;
					font-size: 24rpx;
					color: $uni-secondary-color;
				}
			}
		}
		.new {
			margin-top: 10rpx;
		}
		.seckill,
		.hot {
			margin-top: 40rpx;
		}
		.groupNew {
			margin-top: 20rpx;
			width: 100%;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: flex-start;
			.newItem {
				width: 228rpx;
				background: $uni-primary-bg;
				box-shadow: 0 0 10rpx #f4f4f4;
				border-radius: 12rpx;
				overflow: hidden;
				display: flex;
				flex-direction: column;
				.itemThumb {
					width: 100%;
					font-size: 0;
					position: relative;
					> image {
						width: 228rpx;
						height: 228rpx;
						background: $uni-bg-color;
					}
					> text {
						position: absolute;
						right: 2rpx;
						top: 2rpx;
						padding: 0 10rpx;
						width: max-content;
						height: 36rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						border-top-right-radius: 12rpx;
						border-bottom-left-radius: 12rpx;
						background: $uni-main-color;
						font-weight: 400;
						font-size: 20rpx;
						color: #fff;
					}
				}
				> .itemH1 {
					margin-top: 10rpx;
					width: 100%;
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp: 1;
					word-break: break-all;
					-webkit-box-orient: vertical;
					> .name {
						padding: 0 8rpx;
						flex: 1;
						font-weight: 400;
						font-size: 28rpx;
						color: $uni-main-color;
					}
				}
				> .itemH2 {
					margin-top: 8rpx;
					padding: 0 8rpx;
					flex: 1;
					display: flex;
					flex-direction: row;
					flex-wrap: nowrap;
					overflow: hidden;
					> text {
						margin-right: 8rpx;
						margin-bottom: 8rpx;
						padding: 4rpx 8rpx;
						background: $uni-bg-color;
						border-radius: 8rpx;
						font-weight: 400;
						font-size: 24rpx;
						color: $uni-warning;
						word-break: keep-all;
					}
				}
				> .itemPrice {
					margin-top: 10rpx;
					padding: 0 8rpx;
					width: calc(100% - 16rpx);
					display: flex;
					flex-direction: row;
					align-items: center;
					.price {
						flex: 1;
						display: flex;
						flex-direction: row;
						justify-content: flex-start;
						align-items: baseline;
						overflow: hidden;
						> text {
							font-weight: 400;
							font-size: 24rpx;
							color: $uni-secondary-color;
						}
						> rich-text {
							font-weight: 400;
							font-size: 28rpx;
							color: $xxf-red;
						}
						> text:nth-child(1) {
							color: $xxf-red;
						}
						> rich-text:last-child {
							color: $uni-secondary-color;
							text-decoration: line-through;
						}
					}
					.pop {
						width: 40rpx;
					}
					::v-deep.uni-icons {
						color: $uni-primary !important;
					}
				}
			}
		}
		.groupSeckill {
			margin-top: 20rpx;
			width: 100%;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			position: relative;
			.seckillBg {
				width: 710rpx;
				height: 192rpx;
			}
			.time {
				width: 300rpx;
				position: absolute;
				left: calc(50% - 150rpx);
				bottom: 34rpx;
				display: flex;
				flex-direction: row;
				justify-content: center;
				align-items: center;
				> text {
					padding: 0 10rpx;
					font-weight: bold;
					font-size: 28rpx;
					color: $xxf-red;
					text-shadow: 2rpx 2rpx #fff, -2rpx -2rpx #fff, 2rpx -2rpx #fff, -2rpx 2rpx #fff;
				}
				> text:nth-child(2n + 1) {
					// border: 2rpx solid #fff;
					// color: #fff;
					// background: $xxf-red;
					color: $xxf-red;
					border-radius: 6rpx;
				}
			}
		}
		.groupHot {
			margin-top: 20rpx;
			width: 100%;
			display: flex;
			flex-direction: column;
			// .hotItem:nth-child(2n) {
			// 	flex-direction: row-reverse;
			// }
			.hotItem {
				margin-top: 20rpx;
				width: 100%;
				background: $uni-primary-bg;
				box-shadow: 0 0 10rpx #f4f4f4;
				border-radius: 10rpx;
				overflow: hidden;
				display: flex;
				flex-direction: row;
				.itemThumb {
					width: 220rpx;
					border-radius: 12rpx;
					overflow: hidden;
					font-size: 0;
					position: relative;
					> image {
						width: 220rpx;
						height: 220rpx;
						background: $uni-bg-color;
					}
				}
				> .itemSide {
					padding: 10rpx 20rpx;
					width: calc(100% - 220rpx - 40rpx);
					display: flex;
					flex-direction: column;
					> .itemH1 {
						width: 100%;
						overflow: hidden;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-line-clamp: 2;
						word-break: break-all;
						-webkit-box-orient: vertical;
						> .label {
							display: inline-block;
							background: $uni-warning;
							border-radius: 4rpx;
							padding: 0rpx 8rpx 4rpx;
							margin-right: 8rpx;
							font-weight: 400;
							font-size: 24rpx;
							color: #fff;
						}
						> .name {
							flex: 1;
							font-weight: 400;
							font-size: 28rpx;
							color: $uni-main-color;
						}
					}
					> .itemH2 {
						margin-top: 8rpx;
						width: 100%;
						display: flex;
						flex-direction: row;
						flex-wrap: wrap;
						> text {
							margin-right: 8rpx;
							margin-bottom: 8rpx;
							padding: 4rpx 8rpx;
							background: $uni-bg-color;
							border-radius: 8rpx;
							font-weight: 400;
							font-size: 24rpx;
							color: $uni-warning;
						}
						> text:last-child {
							margin-right: 0;
						}
					}
					> .itemH3 {
						margin-top: auto;
						width: 100%;
						> text {
							flex: 1;
							font-weight: 400;
							font-size: 24rpx;
							color: $uni-main-color;
						}
					}
					> .itemPrice {
						margin-top: 10rpx;
						width: 100%;
						display: flex;
						flex-direction: row;
						align-items: center;
						.price {
							flex: 1;
							display: flex;
							flex-direction: row;
							justify-content: flex-start;
							align-items: baseline;
							overflow: hidden;
							> text {
								font-weight: 400;
								font-size: 24rpx;
								color: $uni-secondary-color;
							}
							> rich-text {
								font-weight: 400;
								font-size: 28rpx;
								color: $xxf-red;
							}
							> text:nth-child(1) {
								color: $xxf-red;
							}
							> rich-text:last-child {
								color: $uni-secondary-color;
								text-decoration: line-through;
							}
						}
						.pop {
							margin-left: auto;
							padding: 10rpx 20rpx;
							width: 40rpx;
						}
						::v-deep.uni-icons {
							color: $uni-primary !important;
						}
						.buy {
							background: linear-gradient(90deg, #e7251e 0%, #e84726 100%);
							border-radius: 100rpx;
							padding: 12rpx 20rpx;
							display: flex;
							justify-content: center;
							align-items: center;
							> text {
								font-weight: 500;
								font-size: 28rpx;
								color: #fff;
							}
						}
					}
				}
			}
		}
	}

	.notice {
		position: fixed;
		left: 0;
		bottom: calc(env(safe-area-inset-bottom) + 136rpx);
		z-index: 999;
		padding: 20rpx 30rpx;
		width: calc(100% - 60rpx);
		background: linear-gradient(180deg, rgba(243, 167, 63, 0.9), #fff);
		border-radius: 50rpx 50rpx 0 0;
		box-shadow: 0 -10rpx 10rpx #fff;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		> image {
			width: 56rpx;
			height: 56rpx;
		}
		> text {
			padding: 0 16rpx;
			flex: 1;
			font-weight: 400;
			font-size: 28rpx;
			color: #ee0c0c;
			//text-shadow: 0 0 4rpx #fff;
		}
	}
	.noMore {
		background: transparent;
	}
}
